package com.hxzy.controller.mobile.mapstruct;

import com.hxzy.controller.mobile.addressbook.req.AddressBookAddReq;
import com.hxzy.controller.mobile.addressbook.req.AddressBookEditReq;
import com.hxzy.controller.mobile.addressbook.resp.AddressBookResp;
import com.hxzy.entity.AddressBook;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @Author wy
 * @Description TODO
 * @Date 2023/7/24 9:41
 * @Version 1.0
 */
@Mapper
public interface AddressBookConvert {
    AddressBookConvert  INSTANCE= Mappers.getMapper(AddressBookConvert.class);

    AddressBookResp convert(AddressBook req);

    List<AddressBookResp> convert(List<AddressBook> list);

    AddressBook convert(AddressBookAddReq req);

    AddressBook convert(AddressBookEditReq req);
}
